<?php
/**
 * User: b179a9
 * Date: 10/10/11
 * Time: 5:19 PM
 */

class App_Form_Payment_Type extends Zend_Form
{

    public function init()
    {

        $paymentTypes = array('express', 'direct');

        $money = new Zend_Form_Element_Text('money');
        $money->setLabel('Money count:')
                ->setRequired()
                ->addValidator(new Zend_Validate_Digits());
        $this->addElement($money);

        $type = new Zend_Form_Element_Select('type');
        foreach ($paymentTypes as $paymentType) {
            $type->addMultiOption($paymentType, $paymentType);
        }
        $type->setRequired()
                ->setLabel('Payment Type:');
        $this->addElement($type);

        $submit = new Zend_Form_Element_Submit('submit');
        $this->addElement($submit);
        

    }

}
